<?php
class ORMpz_ecom_transaction {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->date_added)) {
      $obj->date_added =  $args->date_added;
    }
    if (isset($args->date_last_mod)) {
      $obj->date_last_mod =  $args->date_last_mod;
    }
    if (isset($args->date_paid)) {
      $obj->date_paid =  $args->date_paid;
    }
    if (isset($args->trans_no)) {
      $obj->trans_no =  $args->trans_no;
    }
    if (isset($args->customer_id)) {
      $obj->customer_id =  $args->customer_id;
    }
    if (isset($args->payment_id)) {
      $obj->payment_id =  $args->payment_id;
    }
    if (isset($args->payment_name)) {
      $obj->payment_name =  $args->payment_name;
    }
    if (isset($args->total)) {
      $obj->total =  $args->total;
    }
    if (isset($args->trans_ref)) {
      $obj->trans_ref =  $args->trans_ref;
    }
    if (isset($args->is_custom)) {
      $obj->is_custom =  $args->is_custom;
    }
    return $obj;
  }
}
?>
